package com.cl.service.impl;

import com.cl.mapper.UserMapper;
import com.cl.pojo.User;
import com.cl.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    @Override
    public List<User> queryAll() {
        return  userMapper.queryAll();
    }

    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }

    @Override
    public User queryByEmail(String email) {
        return userMapper.queryByEmail(email);
    }

    @Override
    public int updatePwd(int lid, String password) {
        return userMapper.updatePwd(lid,password);
    }
}
